import Mock from 'mockjs'

/** **=======测试数据API(拦截ajax请求，代理响应数据)=======****/
// test模块测试
Mock.mock(/(api\/Test)/, function (options) {
  return Mock.mock({
    'array|1-10': [
      {
        'name|+1': [
          'Hello',
          'Mock.js',
          '!'
        ]
      }
    ]
  })
})

Mock.mock(/(api\/test)/, function (options) {
  return ['Mock.js', 2, 3, 4, 5, 6]
})
